import http from '@/utils/http'

export const chargeOrderList = (params) => {
  const url = '/order-management/charge-order-management/selectChargeOrderPage'
  return http.post(url, params)
}

export const timeCardList = (params) => {
  const url =
    '/order-management/timecard-order-management/selectTimeCardOrderPage'
  return http.post(url, params)
}

export const chargeOrderDetail = (params) => {
  const url = '/order-management/charge-order-management/detail/selectById'
  return http.post(url, params)
}

export const timeCardDetail = (params) => {
  const url =
    '/order-management/timecard-order-management/timecard-detail/queryTimecardDetail'
  return http.post(url, params)
}

// 时长清零
export const resetTimeCardRestTime = (params) => {
  const url =
    '/order-management/timecard-order-management/timecard-detail/resetTimeCardRestTime'
  return http.post(url, params)
}

// 导出订单列表
export const exportTimecardPage = (params) => {
  const url = '/order-management/timecard-order-management/exportPage'
  return http.post(url, params)
}

// 导出订单列表
export const exportOrderPage = (params) => {
  const url = '/order-management/charge-order-management/exportPage'
  return http.post(url, params)
}

// 回复申诉
export const replyAppeal = (params) => {
  const url = '/order-management/charge-order-management/detail/replyAppeal'
  return http.post(url, params)
}

// 查询功率曲线
export const getChargeRecord = (params) => {
  const url = '/order-management/charge-order-management/detail/getChargeRecord'
  return http.post(url, params)
}

// 赠送时长卡
export const presentTimeCard = (params) => {
  const url = '/order-management/timecard-order-management/presentTimeCard'
  return http.post(url, params)
}

// 赠送时长卡查询电站
export const selectTimeCardStation = (params) => {
  const url =
    '/order-management/timecard-order-management/selectTimeCardStation'
  return http.get(url, params)
}

// 和能量订单列表
export const selectAndEnergyList = (params) => {
  const url =
    '/order-management/andEnergyCard-management/selectAndEnergyCardOrderPage'
  return http.post(url, params)
}

// 和能量赠送
export const presentAndEnergyCard = (params) => {
  const url = '/order-management/andEnergyCard-management/presentAndEnergyCard'
  return http.post(url, params)
}

// 和能量导出
export const exportAndEnergyCard = (params) => {
  const url = '/order-management/andEnergyCard-management/exportAndEnergyCard'
  return http.post(url, params)
}

// 和能量套餐查询
export const selectAndEnergyCard = (params) => {
  const url =
    '/order-management/andEnergyCard-management/selectAndEnergyDefEntityByMerchantId'
  return http.get(url, params)
}
// 和能量套餐详情查询
export const selectAndEnergyCardDetail = (params) => {
  const url =
    '/order-management/andEnergyCard-management/andEnergyCard-detail/selectAndEnergyCardDetail'
  return http.post(url, params)
}

// 和能量套餐余额清零
export const clearAndEnergyCardRestPoint = (params) => {
  const url =
    '/order-management/andEnergyCard-management/andEnergyCard-detail/clearAndEnergyCardRestPoint'
  return http.post(url, params)
}
